import Home from '../views/Home.vue'; //引入Home组件
const routes = [{
    path: '/', //首页
    name: 'Home',
    component: Home,
    meta: {
      isShowTab: true, //控制是否显示tabbar栏
      title: "首页", //导航栏中显示的标题
      isShowNav: false, //控制是否显示导航栏
      isAuth: true, //判断进入该页面当前页面是否需要登录
      routePath: ['/sign', '/certificate', '/kanjia', '/special'], //控制点击宫格是否跳转
      routeDetails: ['/goodsData', '/selectedClassify', '/popularity'], //控制点击标题是否跳转
    }
  },
  {
    path: '/classify', //分类
    name: 'Classify',
    component: () => import('../views/Classify.vue'),
    meta: {
      isShowTab: true, //控制是否显示tabbar栏
      title: "分类", //导航栏中显示的标题
      isShowNav: false, //控制是否显示导航栏
      // isShowBack:false,//控制是否显示返回图标
      // isShowScan:false,//控制是否显示扫一扫图标
    }
  },
  {
    path: '/cart', //购物车
    name: 'Cart',
    component: () => import('../views/Cart.vue'),
    meta: {
      isShowTab: true, //控制是否显示tabbar栏
      title: "购物车", //导航栏中显示的标题
      isShowNav: false, //控制是否显示导航栏
      isShowBack:true,//控制是否显示返回图标
      isShowScan:false,//控制是否显示扫一扫图标

    }
  },
  {
    path: '/mine', //我的
    name: 'Mine',
    component: () => import('../views/Mine.vue'),
    meta: {
      isShowTab: true, //控制是否显示tabbar栏
      title: "我的", //导航栏中显示的标题
      isShowNav: false, //控制是否显示导航栏
      isShowBack:false,//控制是否显示返回图标
      isShowScan:true,//控制是否显示扫一扫图标

    }
  },
  {
    path: '/login', //登录
    name: 'Login',
    component: () => import('../views/Login.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "登录", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  },
  {
    path: '/details', //详情页
    name: 'Details',
    component: () => import('../views/Details.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "详情页", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  },
  {
    path: '/sign', //签到
    name: 'Sign',
    component: () => import('../views/home/Sign.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "签到", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  },
  {
    path: '/certificate', //礼券
    name: 'Certificate',
    component: () => import('../views/home/Certificate.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "礼券", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  },
  {
    path: '/kanjia', //砍价
    name: 'Kanjia',
    component: () => import('../views/home/Kanjia.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "砍价", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  },
  {
    path: '/special', //专栏
    name: 'Special',
    component: () => import('../views/home/Special.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "专栏", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  },
  {
    path: '/goodsData', //全民砍价
    name: 'GoodsData',
    component: () => import('../views/home/goods/GoodsData.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "全民砍价", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  },
  {
    path: '/selectedClassify', //精选专题
    name: 'SelectedClassify',
    component: () => import('../views/home/selected/SelectedClassify.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "精选专题", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  },
  {
    path: '/selectedDetails', //专栏详情
    name: 'SelectedDetails',
    component: () => import('../views/home/selected/SelectedDetails.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "专栏详情", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  },
  {
    path: '/popularity', //人气推荐
    name: 'Popularity',
    component: () => import('../views/home/popularity/Popularity.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "人气推荐", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  },
  {
    path: '/popularityDetails', //商品详情
    name: 'PopularityDetails',
    component: () => import('../views/home/popularity/PopularityDetails.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "商品详情", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  },
  {
    path: '/backLogin', //我的 设置页面
    name: 'BackLogin',
    component: () => import('../views/BackLogin.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "设置", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  },
  {
    path: '/order', //提交订单 页面
    name: 'Order',
    component: () => import('../views/Order.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "提交订单", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
  }, {
    path: '/classifyxq',
    name: "classifyxq",
    component: () => import('../components/classify/classifyxq.vue'),
    meta: {
      isShowTab: false, //控制是否显示tabbar栏
      title: "商品分类", //导航栏中显示的标题
      isShowNav: true, //控制是否显示导航栏
    }
     // leftImg: require('../assets/tab_header/fanhui.png'),
      // rightImg: require('../assets/tab_header/fenlei.png')
  },
]


export default routes; //将这个文件作为对象抛出去